package com.jiyun.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @projectName: day05_mohongwei_parent
 * @package: com.jiyun.common.model.training
 * @className: Training
 * @author: 莫洪维
 * @email: 1204315800@qq.com
 * @description: TODO
 * @date: 2023/8/14 16:00
 */
@Data
@ToString
@TableName(value = "training")
public class Training {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField(value = "photo_url")
    private String photoUrl;
    @TableField(value = "training_name")
    private String trainingName;
    @TableField(value = "join_num")
    private Integer joinNum;
    @TableField(value = "training_plan")
    private String trainingPlan;
    @TableField(value = "training_start_date")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date trainingStartDate;
    @TableField(value = "training_end_date")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date trainingEndDate;
    @TableField(value = "training_sort")
    private String trainingSort;
    @TableField(value = "training_status")
    private String trainingStatus;
    @TableField(value = "course_proportion")
    private Integer courseProportion;
    @TableField(value = "test_proportion")
    private Integer testProportion;
    @TableField(value = "training_objects")
    private String trainingObjects;
    @TableField(value = "info")
    private String info;
    @TableField(value = "is_delete")
    private String isDelete;

    //标签ID

    @TableField(exist = false)
    private String labelIds;


    private Integer  kechengnum;
    private Integer  cheyannum;
    private Integer  renshunum;


    //成员ID

    @TableField(exist = false)
    private String memberIds;
}

